package com.yl.auth.controller;


import com.yl.auth.model.entity.Tijianbaogao;
import com.yl.auth.service.TijianbaogaoService;
import com.yl.common.result.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author yl
 * @since 2023-06-17
 */
@RestController
@RequestMapping("/auth/tijianbaogao")
@Api(tags ="体检报告管理")
public class TijianbaogaoController {

    @Resource
    private TijianbaogaoService tijianbaogaoService;

    @GetMapping("/findAll")
    @ApiOperation("查看全部报告信息")
    public Result findAll() {
        List<Tijianbaogao> list = tijianbaogaoService.list();
        return Result.ok(list);
    }
}

